package com.spa.application.command.admin;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class AdminCarouselAddCommand {

    @NotEmpty(message = "标题必填")
    private String title;

    @NotEmpty(message = "轮播图必填")
    @Size(min = 20, max = 40, message = "请确认图片地址是否正确")
    private String imgKey;

    private Integer sort = 0;

    private String link;

    private Integer isShow = 0;

    @NotNull(message = "类型必填")
    private Integer type;

}
